const userInfo = {
  token: 'token',
  username: 'username',
  id: 0,
  dept: 'dept',
  tel: 'tel',
  email: 'email',
  password: '********',
  faceuri: 'faceuri'
}

export function getToken() {
  return sessionStorage.getItem(userInfo.token)
}

export function setToken(token) {
  return sessionStorage.setItem(userInfo.token, token)
}

export function removeToken() {
  return sessionStorage.removeItem(userInfo.token)
}

export function getTokenR() {
  return localStorage.getItem(userInfo.token)
}

export function setTokenR(token) {
  return localStorage.setItem(userInfo.token, token)
}

export function removeTokenR() {
  return localStorage.removeItem(userInfo.token)
}

export function getUsername() {
  return localStorage.getItem(userInfo.username)
}

export function setUsername(username) {
  return localStorage.setItem(userInfo.username, username)
}

export function removeUsername() {
  return localStorage.removeItem(userInfo.username)
}

export function getId() {
  return localStorage.getItem(userInfo.id)
}

export function setId(id) {
  return localStorage.setItem(userInfo.id, id)
}

export function removeId() {
  return localStorage.removeItem(userInfo.id)
}

export function getDept() {
  return localStorage.getItem(userInfo.dept)
}

export function setDept(dept) {
  return localStorage.setItem(userInfo.dept, dept)
}

export function removeDept() {
  return localStorage.removeItem(userInfo.dept)
}

export function getTel() {
  return localStorage.getItem(userInfo.tel)
}

export function setTel(tel) {
  return localStorage.setItem(userInfo.tel, tel)
}

export function removeTel() {
  return localStorage.removeItem(userInfo.tel)
}

export function getEmail() {
  return localStorage.getItem(userInfo.email)
}

export function setEmail(email) {
  return localStorage.setItem(userInfo.email, email)
}

export function removeEmail() {
  return localStorage.removeItem(userInfo.email)
}

export function getPassword() {
  return localStorage.getItem(userInfo.password)
}

export function setPassword(password) {
  return localStorage.setItem(userInfo.password, password)
}

export function removePassword() {
  return localStorage.removeItem(userInfo.password)
}

export function getFaceuri() {
  return localStorage.getItem(userInfo.faceuri)
}

export function setFaceuri(faceuri) {
  return localStorage.setItem(userInfo.faceuri, faceuri)
}

export function removeFaceuri() {
  return localStorage.removeItem(userInfo.faceuri)
}
